﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001281 RID: 4737
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SwitchLineupIndexCsReq : IMessage<SwitchLineupIndexCsReq>, IMessage, IEquatable<SwitchLineupIndexCsReq>, IDeepCloneable<SwitchLineupIndexCsReq>, IBufferMessage
	{
		// Token: 0x17003C0F RID: 15375
		// (get) Token: 0x0600D483 RID: 54403 RVA: 0x0023C0A4 File Offset: 0x0023A2A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SwitchLineupIndexCsReq> Parser
		{
			get
			{
				return SwitchLineupIndexCsReq._parser;
			}
		}

		// Token: 0x17003C10 RID: 15376
		// (get) Token: 0x0600D484 RID: 54404 RVA: 0x0023C0AB File Offset: 0x0023A2AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SwitchLineupIndexCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003C11 RID: 15377
		// (get) Token: 0x0600D485 RID: 54405 RVA: 0x0023C0BD File Offset: 0x0023A2BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SwitchLineupIndexCsReq.Descriptor;
			}
		}

		// Token: 0x0600D486 RID: 54406 RVA: 0x0023C0C4 File Offset: 0x0023A2C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwitchLineupIndexCsReq()
		{
		}

		// Token: 0x0600D487 RID: 54407 RVA: 0x0023C0CC File Offset: 0x0023A2CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwitchLineupIndexCsReq(SwitchLineupIndexCsReq other) : this()
		{
			this.index_ = other.index_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D488 RID: 54408 RVA: 0x0023C0F1 File Offset: 0x0023A2F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwitchLineupIndexCsReq Clone()
		{
			return new SwitchLineupIndexCsReq(this);
		}

		// Token: 0x17003C12 RID: 15378
		// (get) Token: 0x0600D489 RID: 54409 RVA: 0x0023C0F9 File Offset: 0x0023A2F9
		// (set) Token: 0x0600D48A RID: 54410 RVA: 0x0023C101 File Offset: 0x0023A301
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Index
		{
			get
			{
				return this.index_;
			}
			set
			{
				this.index_ = value;
			}
		}

		// Token: 0x0600D48B RID: 54411 RVA: 0x0023C10A File Offset: 0x0023A30A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SwitchLineupIndexCsReq);
		}

		// Token: 0x0600D48C RID: 54412 RVA: 0x0023C118 File Offset: 0x0023A318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SwitchLineupIndexCsReq other)
		{
			return other != null && (other == this || (this.Index == other.Index && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D48D RID: 54413 RVA: 0x0023C148 File Offset: 0x0023A348
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Index != 0U)
			{
				num ^= this.Index.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D48E RID: 54414 RVA: 0x0023C187 File Offset: 0x0023A387
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D48F RID: 54415 RVA: 0x0023C18F File Offset: 0x0023A38F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D490 RID: 54416 RVA: 0x0023C198 File Offset: 0x0023A398
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Index != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Index);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D491 RID: 54417 RVA: 0x0023C1CC File Offset: 0x0023A3CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Index != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Index);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D492 RID: 54418 RVA: 0x0023C20A File Offset: 0x0023A40A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SwitchLineupIndexCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Index != 0U)
			{
				this.Index = other.Index;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D493 RID: 54419 RVA: 0x0023C23B File Offset: 0x0023A43B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D494 RID: 54420 RVA: 0x0023C244 File Offset: 0x0023A444
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Index = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005509 RID: 21769
		private static readonly MessageParser<SwitchLineupIndexCsReq> _parser = new MessageParser<SwitchLineupIndexCsReq>(() => new SwitchLineupIndexCsReq());

		// Token: 0x0400550A RID: 21770
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400550B RID: 21771
		public const int IndexFieldNumber = 4;

		// Token: 0x0400550C RID: 21772
		private uint index_;
	}
}
